package page.ineffable.photostorage.pojo;

/**
 * 用户model
 *
 * @author lqs2
 * @date 2018/10/29, Mon
 */
public class User {
    /**
     * 唯一id
     **/
    private String id;
    /**
     * 用户名
     **/
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 性别 如果true则男
     */
    private boolean sex;
    /**
     * 个人空间最大额度，单位GB
     **/
    private float limit;

    /**
     * 个人空间已经使用额度，单位GB
     **/
    private float used;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public float getLimit() {
        return limit;
    }

    public void setLimit(float limit) {
        this.limit = limit;
    }

    public float getUsed() {
        return used;
    }

    public void setUsed(float used) {
        this.used = used;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sex=" + sex +
                ", limit=" + limit +
                ", used=" + used +
                '}';
    }
}
